package test;

import java.util.Arrays;
import java.util.Scanner;

public class Main0602 {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int n=in.nextInt();
		int[] arr=new int[n];
		for(int i=0;i<arr.length;){
			try{
				arr[i]=	Integer.parseInt(in.next());
			}catch(NumberFormatException e){
				System.out.println(e);
				i--;
			}
			i++;
		}
		System.out.println(Arrays.toString(arr));
	}
}
